import request from '@/utils/request'
// 权限组简单列表
export function getsimplelist() {
  return request({
    url: '/permissions/simple'
  })
}
// 获取权限列表
export function getpermissionslist(params) {
  return request({
    url: '/permissions',
    params
  })
}
// 添加
export function addpermissions(data) {
  return request({
    url: '/permissions',
    method: 'post',
    data
  })
}
// 编辑
export function editpermissions(data) {
  return request({
    url: `/permissions/${data.id}`,
    method: 'put',
    data
  })
}
// 权限组详情
export function getpermissionsdetail(id) {
  return request({
    url: `/permissions/${id}`
  })
}
// 删除
export function delpermissions(data) {
  return request({
    url: `/permissions/${data.id}`,
    method: 'DELETE',
    data
  })
}
